/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2013
 */

package com.gxuwz.byssxsys.model;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.gxuwz.byssxsys.model.*;
import com.gxuwz.byssxsys.dao.*;
import com.gxuwz.byssxsys.service.*;
import com.gxuwz.byssxsys.vo.query.*;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "auditor")
public class Auditor extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "Auditor";
	public static final String ALIAS_ID = "主键";
	public static final String ALIAS_AUDITOR_NO1 = "审核员编号";
	public static final String ALIAS_AUDITOR_NAME2 = "审核员名字";
	public static final String ALIAS_AUDITOR_XIBU3 = "所属系部";
	public static final String ALIAS_AUDITOR_EMAIL4 = "邮箱";
	public static final String ALIAS_AUDITOR_PASSWORD5 = "登录密码";
	public static final String ALIAS_AUDITOR_REMARK6 = "审核备注";
	
	//date formats
	

	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * 主键       db_column: id 
     */ 	
	
	private java.lang.Integer id;
    /**
     * 审核员编号       db_column: auditor_no1 
     */ 	
	@Length(max=50)
	private java.lang.String auditorNo1;
    /**
     * 审核员名字       db_column: auditor_name2 
     */ 	
	@Length(max=60)
	private java.lang.String auditorName2;
    /**
     * 所属系部       db_column: auditor_xibu3 
     */ 	
	@Length(max=100)
	private java.lang.String auditorXibu3;
    /**
     * 邮箱       db_column: auditor_email4 
     */ 	
	@Email @Length(max=100)
	private java.lang.String auditorEmail4;
    /**
     * 登录密码       db_column: auditor_password5 
     */ 	
	@Length(max=50)
	private java.lang.String auditorPassword5;
    /**
     * 审核备注       db_column: auditor_remark6 
     */ 	
	@Length(max=500)
	private java.lang.String auditorRemark6;
	//columns END


	public Auditor(){
	}

	public Auditor(
		java.lang.Integer id
	){
		this.id = id;
	}

	

	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	@Id @GeneratedValue(generator="custom-id")
	@GenericGenerator(name="custom-id", strategy = "increment")
	@Column(name = "id", unique = true, nullable = false, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getId() {
		return this.id;
	}
	
	@Column(name = "auditor_no1", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getAuditorNo1() {
		return this.auditorNo1;
	}
	
	public void setAuditorNo1(java.lang.String value) {
		this.auditorNo1 = value;
	}
	
	@Column(name = "auditor_name2", unique = false, nullable = true, insertable = true, updatable = true, length = 60)
	public java.lang.String getAuditorName2() {
		return this.auditorName2;
	}
	
	public void setAuditorName2(java.lang.String value) {
		this.auditorName2 = value;
	}
	
	@Column(name = "auditor_xibu3", unique = false, nullable = true, insertable = true, updatable = true, length = 100)
	public java.lang.String getAuditorXibu3() {
		return this.auditorXibu3;
	}
	
	public void setAuditorXibu3(java.lang.String value) {
		this.auditorXibu3 = value;
	}
	
	@Column(name = "auditor_email4", unique = false, nullable = true, insertable = true, updatable = true, length = 100)
	public java.lang.String getAuditorEmail4() {
		return this.auditorEmail4;
	}
	
	public void setAuditorEmail4(java.lang.String value) {
		this.auditorEmail4 = value;
	}
	
	@Column(name = "auditor_password5", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getAuditorPassword5() {
		return this.auditorPassword5;
	}
	
	public void setAuditorPassword5(java.lang.String value) {
		this.auditorPassword5 = value;
	}
	
	@Column(name = "auditor_remark6", unique = false, nullable = true, insertable = true, updatable = true, length = 500)
	public java.lang.String getAuditorRemark6() {
		return this.auditorRemark6;
	}
	
	public void setAuditorRemark6(java.lang.String value) {
		this.auditorRemark6 = value;
	}
	

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("AuditorNo1",getAuditorNo1())
			.append("AuditorName2",getAuditorName2())
			.append("AuditorXibu3",getAuditorXibu3())
			.append("AuditorEmail4",getAuditorEmail4())
			.append("AuditorPassword5",getAuditorPassword5())
			.append("AuditorRemark6",getAuditorRemark6())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Auditor == false) return false;
		if(this == obj) return true;
		Auditor other = (Auditor)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

